<template>
  <div class="layers-box">
    <div class="layers-title">图层</div>
    <div class="layers-item" v-for="item in elementList" :key="item.key">
      <div class="layers-icon"></div>
      <div>{{ item.title }}</div>
    </div>
  </div>
</template>

<script>
import { elements } from '@/const/elements';
import { mapGetters } from 'vuex';
export default {
  name: '',
  data() {
    return {
      elements
    }
  },
  computed: {...mapGetters(['elementList'])},
  methods: {
  }
}
</script>

<style lang="scss" scoped>
.layers-box {
  width: 150px;
  background-color: #1b1f25;
  .layers-title {
    box-sizing: border-box;
    font-size: 14px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    background-color: #2a2a2b;
  }
  .layers-item {
    width: 100%;
    margin-bottom: 8px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border-radius: 5px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 5px 5px;
    position: relative;
    background: #1b1f25;
    color: #fff;
    cursor: pointer;
    border: 1px solid #1b1f25;
    -webkit-box-flex: 0;
    -ms-flex: none;
    flex: none;
    font-size: 12px;
    .layers-icon {
      color: #409eff;
      margin-right: 8px;
      width: 50px;
      min-width: 50px;
      height: 30px;
      line-height: 30px;
      text-align: center;
      display: block;
      background-color: #1b2127;
      border: 1px solid #373739;
      border-radius: 5px;
    }
  }
}
</style>
